package com.example.graduationdesignbackend.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuze
 * @since 2024-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("news")
@ApiModel(value="News对象", description="")
public class News implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "新闻的类型，包括：zxdt（最新动态），tzgg（通知公告）等")
    private String typeCode;

    @ApiModelProperty(value = "类型名字")
    private String typeName;

    @ApiModelProperty(value = "新闻题目")
    private String title;

    @ApiModelProperty(value = "新闻的作者")
    private String author;

    @ApiModelProperty(value = "副标题")
    private String subtitle;

    @ApiModelProperty(value = "关键字")
    private String newsKeyword;

    @ApiModelProperty(value = "推荐等级")
    private Integer level;

    @ApiModelProperty(value = "内容")
    private String intro;

    @ApiModelProperty(value = "缩略图")
    private String thumbnail;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "更新时间")
    private Long updateTime;

    @ApiModelProperty(value = "上线时间")
    private Long onlineTime;


}
